#!/usr/bin/env bash

scp -P 222 /data/go/bin/tms app@121.40.143.186:/home/app/tmp/
scp -P 222 /data/go/src/tms-server/env/* app@121.40.143.186:/home/app/tmp/env/

ssh -p 222 app@121.40.143.186 "mv /home/app/tmp/tms /home/app/tms-server/bin/"
ssh -p 222 app@121.40.143.186 "mv /home/app/tmp/env/* /home/app/tms-server/env/"
ssh -p 222 app@121.40.143.186 "sh /home/app/tms-server/restart.sh"